package lq.gateway.configure;

import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;

/**
 * @program: cloud-study
 * @description: web安全配置类
 * @author: LQ
 * @create: 2020-09-02 17:18
 */
@EnableWebSecurity
public class StudyGatewaySecurityConfigure extends WebSecurityConfigurerAdapter {
    @Override
    protected void configure(HttpSecurity http) throws Exception {
        // 关闭csrf功能,否则会报csrf相关异常
        http.csrf().disable();
    }
}
